import requests from '@/api/request'
// const SERVER_URL = 'user'
const SERVER_URL = ''
export default {
  // 登录
  postLoginData (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/user/user/login`,
      method: 'post',
      data
    })
  },
  // 校验原始密码
  postCheckoutPassword (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/user/user/check/password`,
      method: 'post',
      data
    })
  },
  // 修改密码
  postChangePassword (data) {
    return requests({
      url: `${SERVER_URL}/v1/api/user/user/change/password`,
      method: 'post',
      data
    })
  }
}
